package com.example.consumer.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 微服务远程调用
 **/
@FeignClient(value = "producer-server",fallback = ProducerControllerImpl.class)
public interface ProducerController {

    @GetMapping("/producer/{id}")
    String test(@PathVariable("id") String id);
}
